package com.lagou.cl.config;

import lombok.Data;
import org.springframework.boot.context.properties.ConfigurationProperties;
import org.springframework.context.annotation.PropertySource;
import org.springframework.stereotype.Component;

/**
 * @author 程  林
 * @date 2020-06-02 22:21
 * @description //
 * @since V1.0.0
 */
@Data
@Component
@ConfigurationProperties(prefix = "zk")
@PropertySource(value = "classpath:zk.properties", encoding = "utf-8", ignoreResourceNotFound = true)
public class ZooKeeperProperties {

	private String zkHost;

	private int port;
}
